package model;

public class Customers extends PersonFactory {

	private int youngManNumber = 1;
	private int youngWomanNumber = 1;
	private int girlNumber =1;
	private int boyNumber =1;

	public Customers(int youngManNumber, int youngWomanNumber,int girlNumber,int boyNumber) {
		this.youngManNumber = youngManNumber;
		this.youngWomanNumber = youngWomanNumber;
		this.girlNumber=girlNumber;
		this.boyNumber=boyNumber;
		this.createCustomers();
	}

	@Override
	protected void createCustomers() {
		createYoungMan(youngManNumber);
		createYoungWoman(youngWomanNumber);
		createGirl(girlNumber);
		createBoy(boyNumber);
	}

	private void createBoy(int boyNumber) {
		
		for (int i = 0; i < boyNumber; i++) {
			personlist.add(new Boy());
		}
		
	}

	private void createGirl(int girlnumber) {
	
		for (int i = 0; i < girlnumber; i++) {
			personlist.add(new Girl());
		}
		
	}

	private void createYoungWoman(int youngWomanNumber) {
		for (int i = 0; i < youngWomanNumber; i++) {
			personlist.add(new YoungWoman());
		}

	}

	private void createYoungMan(int youngManNumber) {

		for (int i = 0; i < youngManNumber; i++) {
			personlist.add(new YoungMan());
		}
	}

}
